export const getADataAPI = () => {
    return new Promise<Object>((resolve, reject) => {
        resolve({
            totalLength: 100,
            data: Array.from({ length: 100 }, (_, index) => ({
                type: 'A',
                name: `name ${index}`,
                age: Math.floor(Math.random() * 100),
            }))
        })
    })
}

export const getBDataAPI = () => {
    return new Promise<Object>((resolve, reject) => {
        resolve({
            totalLength: 100,
            data: Array.from({ length: 10 }, (_, index) => ({
                type: 'B',
                name: `name ${index}`,
                age: Math.floor(Math.random() * 100),
            }))
        })
    })
}

export const getCDataAPI = (params: any) => {
    console.log('params', params)
    return new Promise<Object>((resolve, reject) => {
        resolve({
            totalLength: 100,
            data: Array.from({ length: 100 }, (_, index) => ({
                type: 'C',
                name: `name ${index}`,
                age: Math.floor(Math.random() * 100),
            }))
        })
    })
}